package com.woniu.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class User implements Serializable {
   private Integer id;
    private String name;
    private String password;
    private String gender;
    @DateTimeFormat(pattern =  "yyyy-MM-dd")//可以解决入参不能自动类型转换的问题
    //
    private Date birthday;
    private Integer age;
    private ClassInfo classInfo;
    private String imgUrl;

}
